<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"> </meta>
    <title>Title</title>
</head>
<body>
<!--直接加入thymeleaf标签即可-->
<h1>超级链接</h1>

<a th:href="@{~/demo1}"> 访问demo1</a> <br/>
<a th:href="@{~/demo1(id=1)}"> 访问demo1, 传递参数</a>

</body>
</html>